package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.MerchantLog;
import com.ruoyi.system.mapper.MerchantLogMapper;
import com.ruoyi.system.service.BaseServiceImpl;
import com.ruoyi.system.service.MerchantLogService;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MerchantLogServiceImpl extends BaseServiceImpl<MerchantLogMapper, MerchantLog> implements MerchantLogService {


    @Resource
    private ThreadPoolTaskExecutor threadPoolTaskExecutor;

    @Override
    public void ansyInsert(MerchantLog merchantLog) {

        threadPoolTaskExecutor.execute(() -> {

            this.addDomain(merchantLog);

        });

    }
}
